﻿/* Définition de la barre et des boutons de catégorie */

#nav_menu{
    height: 40px;
    background-color: #f9f9f9;
    border-bottom-color: #878787;
    border-bottom-width: thick;
    border-bottom-style: solid;
}

.categ_button{
    float: left;
    display: inline-block;
    position: relative;
    width: 200px;
    height: 100%;
    border-right-color: #000;
    border-right-width: thin;
    border-right-style: solid;
    list-style-position: inside;
    padding: 0;
    margin: 0;
}

.categ_button:hover{
    background-color: #444444;
    cursor: pointer;
}

.categ_button:hover a{
    color: #ffffff;
}

.categ_button a{
    display: inline-block;
    width: 100%;
    height: 90%;
    padding-top: 6px; 
    text-align: center;
    color: #000;
    text-decoration: none;
}

/* Fin de définition des boutons de catégorie*/

/* Définition du style du module utilisateur */

#user_module{
    display: inline-block;
    vertical-align: middle;
    position: absolute;
    left: 70%;
    height: 100%;
    top: 0;
}

#user_module > a{
    color: #f9f9f9;
    text-decoration: none;
}

#log {
    display: inline-block;
    vertical-align: middle;
    height: 83%;
    margin-top: 1px;
}


#log>a{
    color: white;
    font-weight: bold;
    padding: 3px 10px 3px 10px;
    display: block;
    margin-top: 4px;
    background-color: rgba(92, 92, 92, 0.50);
    box-shadow: inset 1px 1px 10px #444;
    text-decoration: none;
    text-align: center;
    border-bottom-width: thick;
    border-bottom-style: solid;
    border-bottom-color: white;
    height: 34%;
}

#log a:hover {
    border-bottom-color: #005ef4;
}

#log_mobile{
    position: relative;
    display: none;
    height: 83%;
    width: 60px;
    margin-top: 5px;
    background-image:  url('../Images/Icons/user_icon.png');
    background-color: rgba(92, 92, 92, 0.50);
    background-position: top left;
    background-repeat: no-repeat;
    background-size: 60px 60px;
    box-shadow: inset 1px 1px 10px #444;
    border-bottom-width: thick;
    border-bottom-style: solid;
    border-bottom-color: white;
}

#log_mobile:hover {
    border-bottom-color: #005ef4;
}

#log_mobile_connect{
    position: relative;
    display: inline-block;
    height: 83%;
    width: 60px;
    margin-top: 5px;
    margin-right: 5px;
    background-image:  url('../Images/Icons/user_icon_connected.png');
    background-color: rgba(92, 92, 92, 0.50);
    background-position: top left;
    background-repeat: no-repeat;
    background-size: 60px 60px;
    box-shadow: inset 1px 1px 10px #444;
    border-bottom-width: thick;
    border-bottom-style: solid;
    border-bottom-color: white;
    vertical-align: top;
}

#log_mobile_connect:hover {
    cursor: pointer;
    border-bottom-color: #005ef4;
}

#caddie{
    position: relative;
    margin: 0;
    margin-top: 5px;
    padding-left: 60px;
    display: inline-block;
    vertical-align: top;
    height: 83%;
    background-image: url('../Images/Icons/caddie1.png');
    background-position: 5px center;
    background-repeat: no-repeat;
    background-size: 50px 50px;
    background-color: rgba(92, 92, 92, 0.50);
    border-bottom-width: thick;
    border-bottom-style: solid;
    border-bottom-color: white;
    box-shadow: inset 1px 1px 10px #444;
}

#caddie:hover{
    border-bottom-color: #F3782D;
    cursor: pointer;
}

#caddie div{
    position: relative;
    top: 50%;
    margin-top: -25px;
    display: inline-block;
    vertical-align: middle;
    color: #f9f9f9;
    height: 50px;
}

#desc_caddie{
    font-weight: bold;
    text-align: center;
    width: 100px;
}

/* Fin de définition du module utilisateur*/

/* Block de connexion/inscrption mobile */

.dropdown.unselected{
    display: none;
}

.dropdown.selected{
        display: none;
}

/* Fin de block de connexion/inscrption mobile */

/* Style des tuiles de produit*/

.product_tile{
    display: inline-block;
    position: relative;
    vertical-align: top;
    width: 150px;
    height: 240px;
    margin: 5px;
}

.product_tile:hover{
    cursor: pointer;
}

.tile_content{
    width: 150px;
    height: 240px;
    background-color: white;
}

.tile_content:hover{
    position: absolute;
    height: 290px;
    box-shadow: 1px 1px 15px #555;
    z-index: 100;
}

.product_tile img{
    height: 60%;
    border-width: thin;
    border-color: black;
    border-style: solid;
    width: 100%;
}

.tile_desc{
    display: block;
    text-align: center;
    height: 40px;
}

.tile_prix{
    display: block;
    font-weight: bold;
    text-align: center;
    vertical-align: bottom;
    margin-top: 10px;
     margin-bottom: 10px;
}

.addtocart{
    display: none;
    margin-left: 35px;
    margin-right: 35px;
}

.addtocart>div{
    color: white;
    font-weight: bold;
    text-align: center;
    background-color: #58c900;
    width: 75px;
    padding: 2px 4px 2px 4px;
}

.addtocart:hover{
    cursor: pointer;
    box-shadow: 1px 1px 15px #555;
}

.tile_content:hover > .addtocart{
    display: block;
}

.product_tile:hover img{
    border-style: none;
    height: 50%;
}

#tile_content_det{
    background-color: rgba(189, 189, 189, 0.70);
    display: none;
    position: absolute;
    margin-top: -50px;
    margin-left: 45px;
    padding: 5px;
    color: white;
    pointer-events: none;
}

.tile_content:hover>#tile_content_det{
    display: block;
    
}

/* Fin du style des tuiles de produit */

#empty_message{
    display: inline-block;
    font-size: 30px;
    width: 100%;
    text-align: center;
    margin: 40px 0 40px 0;
}


#best_sales_header{
    font-size: 20px;
    position: relative;
    margin-top: 10px;
    left: 60%;
    border-bottom:1px solid black;
    width: 250px;
    text-align: center
}

/* Page de profil*/

#my_account{
    font-size: 25px;
    margin: 10px 0 10px 20px;
    border-bottom:1px solid black;
    width: 40%;
}

#deco_but{
    text-decoration: none;
    margin-left: 30px;
}

#perso_infos{
    font-size: 20px;
    margin: 10px 0 10px 20px;
    border-bottom:1px solid black;
    width: 40%;
}

#infos_block{
    margin-left: 40px;
}

.infos_details>*{
    display: inline-block;
    width: 200px;
    margin-bottom: 20px;
}

/* Fin de page de profil */

.backto_achats{
    display: block;
    background-color: #00c534;
    background-image: url('../Images/Icons/arrow-l.png');
    background-position: left center;
    background-repeat: no-repeat;    
    background-size: 30px 30px;
    text-decoration: none;
    margin-left: 38%;
    margin-bottom: 20px;
    height: 16px;
    width: 200px;
    padding: 20px 0px 30px 40px; 
    color: white;
    font-weight: bold;
    font-size: 18px;
     border-color: Black;
    border-width: thin;
    border-style: solid;
}

.backto_achats:hover{
    cursor: pointer;
    box-shadow: 1px 1px 15px #555;
}

/* ----------------------- SECTION MEDIA QUERIES ------------------------- */

/* Style pour les ecrans jusqu'à 1500px de largeur */
@media all and (max-width: 1500px)
{
    #user_module{
        left: 60%;
    }
}

/* Style pour les ecrans jusqu'à 1000px de largeur */
@media all and (max-width: 1000px)
{
    #user_module{
        left: 55%;
    }

    /*#desc_caddie{
        visibility: hidden;
        width: 0px;
    }*/

    .categ_button{
        width: 170px;
    }

    #best_sales_header{
        left: 30%;
    }

    .backto_achats {
        margin-left: 33%;
    }
}

/* Style pour les ecrans jusqu'à 700px de largeur */
@media all and (max-width: 700px)
{
    #user_module{
        left: 50%;
    }

    #desc_caddie{
        width: 40px;
        font-size: 20px;
        
        overflow: hidden;
    }

    #caddie div{
        height: 35px;
}

    .categ_button{
        font-size: 14px;
        width: 110px;
    }

    #slider{
        display: none;
    }

    .backto_achats {
        margin-left: 25%;
    }

    #best_sales_header{
        left: 23%;
    }
}

/* Style pour les ecrans jusqu'à 480px de largeur */
@media all and (max-width: 480px) {
    .categ_button{
        float: none;
        position: relative;
        display: block;
        height: 40px;
        border-bottom-width: thick;
        border-bottom-color: #444444;
        border-bottom-style: solid;
        border-right-width: 5px;
        border-right-color: #444444;
        border-right-style: solid;
        width: 100%;
    }


    #nav_menu {
        display: inline-block;
        width: 30%;
        border-bottom-style: none;
        height: 180px;
    }

    #log{
        display: none;
    }

    #log_mobile{
        display: inline-block;
        position: relative;
        vertical-align: middle;
    }

    .dropdown.selected{
        display: block;
        top: 77px;
        background-color: white;
        position: absolute;
        z-index: 1;
        height: 120px;
        border-color: black;
        border-style: solid;
        border-width: thin;
        width: 120px;
        text-align: center;
        background-color: rgba(92, 92, 92, 0.75);
        box-shadow: inset 1px 1px 10px #444;
    }

    .dropdown.selected a{
        text-decoration: none;
        color: white;
        display: block;
        font-size: 20px;
        margin-top: 20px;
        font-weight: bold;
    }

    #caddie{
         width: 60px;
    }
    
    
    #user_module{
        left:  40%;
        width: 58%;
        padding-left: 0;
    }
    
    #best_sales_header{
        width: 200px;
        display: inline-block;
        height: 50px;
        left: 5%;
        margin-top: 60px;
        vertical-align: top;
        font-weight: bold;
    }

    .product_tile{
        display: block;
        width: 95%;
        height: 150px;
    }

    .tile_desc{
        display: inline-block;
        vertical-align: top;
        text-overflow: ellipsis;
        width: 40%;
    }

    .tile_content>img{
        display: inline-block;
        width: 150px;
        margin-right: 20px;
        height: 100%;
    }

    .tile_content{
        width: 100%;
        height: 150px;
    }

    .tile_prix{
        display: block; 
        margin-top: -110px;
        margin-left: 60%;
        font-size: 25px;
    }

    .tile_content:hover{
        position: relative;
        height: 100%;
    }

    .product_tile:hover img{
        height: 100%;
    }

    .addtocart{
        display: block;
        position: relative;
        left: 70%;
        top: -5px;
        margin: 0;
        width: 85px;
    }

    .addtocart>div{
        padding: 5px;
    }

    #my_account{
        display: inline-block;
        width: 60%;
        vertical-align: top;
        margin-top: 30px;
    }

    #deco_but{
        display: inline-block;
        position: relative;
        width: 150px;
        margin-left: 35%;
        margin-top: -100px;
    }

    #perso_infos{
        width: 50%;
    }

    .backto_achats {
        margin-left: 15%;
    }
}
